3 const int SIZE
= 1000000;
5 //criba[i] = false si i es primo
9 memset(criba
, false, sizeof(criba
));
11 criba
[0] = criba
[1] = true;
12 for (int i
=2; i
<=SIZE
; i
+= 2){
16 for (int i
=3; i
<=SIZE
; i
+= 2){
18 for (int j
=i
+i
; j
<=SIZE
; j
+= i
){